package com.fc.v2.model.auto;

import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.date.DateUtil;
import java.util.Date;

public class MgdInfo implements Serializable {
    private static final long serialVersionUID = 1L;

	
	@ApiModelProperty(value = "id")
	private Integer id;
	
	@ApiModelProperty(value = "用户名")
	private String nickname;
	
	@ApiModelProperty(value = "电话号码")
	private String phone;
	
	@ApiModelProperty(value = "邮箱")
	private String email;
	
	@ApiModelProperty(value = "蘑菇钉用户")
	private String mgdUser;
	
	@ApiModelProperty(value = "蘑菇钉密码")
	private String mgdPass;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@ApiModelProperty(value = "上次蘑菇钉签到时间")
	private Date lastSingin;
	
	@ApiModelProperty(value = "用户状态（-1，0，1），默认0，注册待通过")
	private Integer stute;
	
	@ApiModelProperty(value = "对应会员id")
	private Integer memberId;
	
	@JsonProperty("id")
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id =  id;
	}
	@JsonProperty("nickname")
	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname =  nickname;
	}
	@JsonProperty("phone")
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone =  phone;
	}
	@JsonProperty("email")
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email =  email;
	}
	@JsonProperty("mgdUser")
	public String getMgdUser() {
		return mgdUser;
	}

	public void setMgdUser(String mgdUser) {
		this.mgdUser =  mgdUser;
	}
	@JsonProperty("mgdPass")
	public String getMgdPass() {
		return mgdPass;
	}

	public void setMgdPass(String mgdPass) {
		this.mgdPass =  mgdPass;
	}
	@JsonProperty("lastSingin")
	public Date getLastSingin() {
		return lastSingin;
	}

	public void setLastSingin(Date lastSingin) {
		this.lastSingin =  lastSingin;
	}
	@JsonProperty("stute")
	public Integer getStute() {
		return stute;
	}

	public void setStute(Integer stute) {
		this.stute =  stute;
	}
	@JsonProperty("memberId")
	public Integer getMemberId() {
		return memberId;
	}

	public void setMemberId(Integer memberId) {
		this.memberId =  memberId;
	}

																		
	public MgdInfo(Integer id,String nickname,String phone,String email,String mgdUser,String mgdPass,Date lastSingin,Integer stute,Integer memberId) {
				
		this.id = id;
				
		this.nickname = nickname;
				
		this.phone = phone;
				
		this.email = email;
				
		this.mgdUser = mgdUser;
				
		this.mgdPass = mgdPass;
				
		this.lastSingin = lastSingin;
				
		this.stute = stute;
				
		this.memberId = memberId;
				
	}

	public MgdInfo() {
	    super();
	}

	public String dateToStringConvert(Date date) {
		if(date!=null) {
			return DateUtil.format(date, "yyyy-MM-dd HH:mm:ss");
		}
		return "";
	}
	

}